package com.blog.service;

import java.util.List;

import com.blog.entity.User;

public interface UserService {
	public static final String SESSION_USERINFO = "userinfo";
	/**
	 * 用户注册
	 * @param user
	 * @return
	 */
	public Integer insertUser(User user);
	
	/**
	 * 按名字查找用户
	 * @param loginName
	 * @return
	 */
	public User findByName(String loginName);
	
	/**
	 * 修改用户
	 * @param user
	 * @return
	 */
	public Integer upDateUser(User user);
	
	/**
	 * 批量删除用户
	 * @param ArrayList
	 * @return
	 */
	public Integer batchDelUser(List<String> ArrayList);
}
